Ravi Vishwakarma is a dedicated Software Developer with a passion for crafting efficient and innovative solutions. With a keen eye for detail and years of experience, he excels in developing robust software systems that meet client needs. His expertise spans across multiple programming languages and technologies, making him a valuable asset in any software development project.
ICSM Computer
02-Jun-2025You can configure Forms Authentication in ASP.NET to expire after a certain time and optionally use sliding expiration by setting attributes in the
<forms>element of yourweb.config.Configuration in
web.configExplanation of Key Attributes
timeout="30"slidingExpiration="true"slidingExpiration="false"timeoutminutes after creation, no matter how many requests are made.requireSSL="true"protection="All"cookieless="UseCookies"Example Behavior
timeout="30"andslidingExpiration="true":slidingExpiration="false":Best Practices
slidingExpiration="true"to enhance user experience for active users.